<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>BoardGame 3000: Piece.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">BoardGame 3000
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">A simple board game structure</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.8.0 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">Piece.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#pragma once</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span>
<a name="l00009"></a><a class="code" href="class_piece.html">00009</a> <span class="keyword">class </span><a class="code" href="class_piece.html" title="One Piece on the board.">Piece</a>
<a name="l00010"></a>00010 {
<a name="l00011"></a>00011 <span class="keyword">public</span>:
<a name="l00015"></a>00015         <a class="code" href="class_piece.html#a625f521d371750bcc9c517b151985684">Piece</a>(<span class="keywordtype">char</span> symbol, <span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y);
<a name="l00019"></a>00019         <a class="code" href="class_piece.html#a5d7a4f6bade94cb33b6f634de8aa7918">~Piece</a>();
<a name="l00020"></a>00020 
<a name="l00024"></a>00024         <span class="keywordtype">char</span> <a class="code" href="class_piece.html#abced8ed2c10f60fe904ed839296cc102">getSymbol</a>();
<a name="l00025"></a>00025 
<a name="l00029"></a>00029         <span class="keywordtype">int</span> <a class="code" href="class_piece.html#a363acf6ce583b3bdece837c4283d5bc8">getPosX</a>();
<a name="l00030"></a>00030 
<a name="l00034"></a>00034         <span class="keywordtype">void</span> <a class="code" href="class_piece.html#a772ef545da71e53b82f2d8884cbc4456">setPosX</a>(<span class="keywordtype">int</span> x);
<a name="l00035"></a>00035 
<a name="l00036"></a>00036         <span class="comment">/***</span>
<a name="l00037"></a>00037 <span class="comment">        * Returns Y position</span>
<a name="l00038"></a>00038 <span class="comment">        */</span>
<a name="l00039"></a>00039         <span class="keywordtype">int</span> getPosY();
<a name="l00040"></a>00040 
<a name="l00044"></a>00044         <span class="keywordtype">void</span> <a class="code" href="class_piece.html#ab2ea1793b603d767ca2d6cdb71e02ccb">setPosY</a>(<span class="keywordtype">int</span> y);
<a name="l00045"></a>00045 <span class="keyword">protected</span>:
<a name="l00046"></a><a class="code" href="class_piece.html#a9be3180f1fb90c8c6e743fecb4e3b21a">00046</a>         <span class="keywordtype">char</span> <a class="code" href="class_piece.html#a9be3180f1fb90c8c6e743fecb4e3b21a" title="Symbol for piece.">m_symbol</a>; 
<a name="l00047"></a><a class="code" href="class_piece.html#a73c0cf32e81eb8c05b87f332105af3c6">00047</a>         <span class="keywordtype">int</span> <a class="code" href="class_piece.html#a73c0cf32e81eb8c05b87f332105af3c6" title="X Coordinate.">m_xPos</a>; 
<a name="l00048"></a><a class="code" href="class_piece.html#af57b70e3ab692d1ff6d8a6e2646af2e7">00048</a>         <span class="keywordtype">int</span> <a class="code" href="class_piece.html#af57b70e3ab692d1ff6d8a6e2646af2e7" title="Y Coordinate.">m_yPos</a>;
<a name="l00049"></a>00049 };
<a name="l00050"></a>00050 
</pre></div></div><!-- contents -->


<hr class="footer"/><address class="footer"><small>
Generated on Sat May 12 2012 15:22:53 for BoardGame 3000 by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.0
</small></address>

</body>
</html>
